package com.young.springdemo.service.template;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

//测试模板方法模式
//@Component
public class TestAccount {


//    @PostConstruct
    public void testAccount() throws  Exception {
        Class<?> forName = Class.forName("com.young.springdemo.service.template.CurrentAccount");
        Account account = (Account) forName.newInstance();
        account.handle("张三丰","123456");
    }

}
